#define _CRT_SECURE_NO_WARNINGS 
#include<stdio.h>

int main()
{
    double x, y;
    scanf("%lf", &x);
    if (x != 0)
    {
        y = 1 / x;
        printf("f(%.1lf) = %.1lf", x, y);
    }
    else if (x == 0)
    {
        printf("f(%.1lf) = 0.0", x);
    }
    return 0;
}